Optimal. Leaf size=18 \[ x-\log (1-x)+4 \log (2-x) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 18, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {703, 632, 31} \begin {gather*} x-\log (1-x)+4 \log (2-x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 632
Rule 703
Rubi steps
\begin {align*} \int \frac {x^2}{2-3 x+x^2} \, dx &=x+\int \frac {-2+3 x}{2-3 x+x^2} \, dx\\ &=x+4 \int \frac {1}{-2+x} \, dx-\int \frac {1}{-1+x} \, dx\\ &=x-\log (1-x)+4 \log (2-x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 18, normalized size = 1.00 \begin {gather*} x-\log (1-x)+4 \log (2-x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^2}{2-3 x+x^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 14, normalized size = 0.78 \begin {gather*} x - \log \left (x - 1\right ) + 4 \, \log \left (x - 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 16, normalized size = 0.89 \begin {gather*} x - \log \left ({\left | x - 1 \right |}\right ) + 4 \, \log \left ({\left | x - 2 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 15, normalized size = 0.83 \begin {gather*} x +4 \ln \left (x -2\right )-\ln \left (x -1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.83, size = 14, normalized size = 0.78 \begin {gather*} x - \log \left (x - 1\right ) + 4 \, \log \left (x - 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 14, normalized size = 0.78 \begin {gather*} x-\ln \left (x-1\right )+4\,\ln \left (x-2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 12, normalized size = 0.67 \begin {gather*} x + 4 \log {\left (x - 2 \right )} - \log {\left (x - 1 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________